home *** CD-ROM | disk | FTP | other *** search
- Path: news.glas.apc.org!glas!sanya
- From: sanya@glas.apc.org
- Newsgroups: comp.lang.c
- Subject: HELP ME how to write RESIDENT progs
- Message-ID: <APC&63'0'14d05e82'c54@glas.apc.org>
- Date: Thu, 04 Jan 1996 23:49:20 +0300
- X-Gateway: notes@glas.apc.org
-
-
-
- HELP PLEASE !!
-
-
-
- I am trying to write a resident program whichwill stay in RAM
-
- and will begin to work if I press a special key combination
-
- called a HOT-KEY. It is always shown when you run a resident
-
- program for a first time.
-
-
-
- I am using a compiler where the KEEP() fuction makes the
-
- current program a resident one. I hope you are using this
-
- compiler, too.
-
-
-
- Here's my program.
-
-
-
- #define CONTROL 0x04
-
- #define LSHIFT 0x02
-
-
-
- main()
-
- {
-
- int x;
-
-
-
- puts("Hot-key is CONTROL-LEFTSHIFT.");
-
-
-
- keep(0,x);
-
-
-
- /* 1st question: What is this PARAGRAPHS that KEEP() uses as
-
- a parameter. How can I get know how many paragraphs for my
-
- program is the ok size to do its functions. */
-
-
-
- /* 2nd question: How can I get to this program code.
-
- When KEEP() quits, I don't know how I will continue
-
- program working and how can I check what key was
-
- pressed before the DOS will make this checking and
-
- will do function not what my program wants! */
-
-
-
- if(bioskey(2)==CONTROL|LSHIFT)
-
- {
-
- /* Here I insert the code which will be executed if
-
- a hot-key will be pressed by user. */
-
- }
-
- } /* End of program */
-
-
-
- HELP PLEASE !! If you have free time and 1 or less ICS on
-
- your account please write me a letter as a conference response
-
- or, if you like, send directly to my mail address.
-
- I have some free pages especially for you.
-
-
-
- I think you'll not be angry that I
-
- have not yet drawn my own picture
-
- what I must place after letters.
-
-
-
- Sanya.
-
-